package com.movie.dao;

import com.movie.model.Screening;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ScreeningMapper {
    List<Screening> getScreeningsByMovie(Integer movieId);
    
    // 场次管理方法
    void addScreening(Screening screening);
    List<Screening> getAllScreenings();
    Screening getScreeningById(Integer id);
    void updateScreening(Screening screening);
    void deleteScreening(Integer id);
    
    // 检查场次冲突
    boolean checkScreeningConflict(@Param("hallId") Integer hallId, 
                                  @Param("screeningTime") Date screeningTime,
                                  @Param("excludeId") Integer excludeId);
}